package com.fuxian.dao;

import java.sql.Timestamp;
import java.util.List;
import com.fuxian.model.Teacher;

public interface TeacherDao {

	/**
	 * ADD NEW TEACHER
	 * @author caoxue
	 * @param teacher
	 */
	public void addTeacher(Teacher teacher);

	/**
	 * DELETE TEACHER BY ID
	 * @author caoxue
	 * @param id
	 */
	public void deleteTeacherById(int id);

	/**
	 * MODIFY TEACHER
	 * @author caoxue
	 * @param teacher
	 */
	public void modifyTeacher(Teacher teacher);

	/**
	 * SELECT TEACHER BY ID
	 * @author caoxue
	 * @param id
	 * @return Teacher
	 */
	public Teacher selectTeacherById(int id);

	/**
	 * SELECT TEACHER BY Name
	 * @author caoxue
	 * @param map
	 * @return List
	 */
	public List<Teacher> selectTeacherByName(String name);

	/**
	 * SELECT TEACHER BY Createtime
	 * @author caoxue
	 * @param map
	 * @return List
	 */
	public List<Teacher> selectTeacherByEdubg(String edu_bg,int start,int size);
	/**
	 * SELECT TEACHER BY Edubg
	 * @author caoxue
	 * @param map
	 * @return List
	 */
	public List<Teacher> selectTeacherByCreatetime(Timestamp create_time,int start,int size);


	
	/**
	 * SELECT ALL TEACHER
	 * @param map
	 * @return List
	 */
	public List<Teacher> selectAllTeacher(int start,int size);
	
	public int selectTeacherCount();
}
